import { PLATFORM_Map } from "@/constant/index";
import devicemanagement from "@/assets/images/leftminsvg/devicemanagement.svg?component";
export default {
  path: "/operate",
  redirect: "/device-management/device-management",
  meta: {
    title: "设备管理",
    showLink: true,
    rank: 3,
    icon: devicemanagement,
    platform: [PLATFORM_Map.operate]
  },
  children: [
    {
      name: "device-management",
      path: "/device-management/device-management",
      component: () =>
        import("@/views/operate/device-management/device-management/index.vue"),
      meta: {
        title: "设备管理",
        showParent: true,
        roles: ['business.device.select']
      }
    },
    {
      name: "device-traffic",
      path: "/device-management/traffic-card",
      component: () =>
        import("@/views/operate/device-management/traffic-card/index.vue"),
      meta: {
        title: "流量卡管理",
        showParent: true,
        roles: ['business.flowcards.select']
      }
    },
    {
      name: 'gateway-administration',
      path: '/operate/gateway-administration',
      component: () => import('@/views/operate/device-management/gateway-administration/index.vue'),
      meta: {
        title: '网关管理',
        showParent: true,
        roles: ['business.gateway.select']
      }
    },
    {
      name: 'control-records',
      path: '/operate/control-records',
      component: () => import('@/views/operate/device-management/control-records/index.vue'),
      meta: {
        title: '控制记录',
        showParent: true,
        roles: ['business.control-record.find']
      }
    },
  ]
} satisfies RouteConfigsTable;
